import { useI18n } from 'vue-i18n'

export function userTypeOptions() {
  const { t } = useI18n() // 中英文
  return [
    {
      label: t('keys.ChineseUsers'),
      value: 'DOMESTIC'
    },
    {
      label: t('keys.internationalUsers'),
      value: 'OVERSEAS'
    }
  ]
}

export function enableOptions() {
  const { t } = useI18n() // 中英文
  return [
    // {
    //   label: t('keys.all'),
    //   value: ''
    // },
    {
      label: t('keys.Enable'),
      value: true
    },
    {
      label: t('keys.Disable'),
      value: false
    }
  ]
}

export function productEnableOptions() {
  const { t } = useI18n() // 中英文
  return [
    // {
    //   label: t('keys.all'),
    //   value: ''
    // },
    {
      label: t('keys.Opened'),
      value: 'ZIAM_PRODUCT_OPENING'
    },
    {
      label: t('keys.ClosedOk'),
      value: 'ZIAM_PRODUCT_CLOSED'
    },
    {
      label: t('keys.Expired'),
      value: 'ZIAM_PRODUCT_EXPIRED'
    }
  ]
}

export function msgOptions() {
  const { t } = useI18n() // 中英文
  return [
    {
      value: false,
      label: t('keys.UNREAD')
    },
    {
      value: true,
      label: t('keys.READ')
    },
    {
      value: '',
      label: t('keys.all')
    }
  ]
}
